package com.zhuo.project.order.domain;

import com.zhuo.framework.aspectj.lang.annotation.Excel;
import com.zhuo.framework.web.domain.BaseEntity;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
 * AdEcom任务对象 zz_task
 * 
 * @author zhuo
 * @date 2020-03-26
 */
public class ZzTask extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 关联ID */
    @Excel(name = "关联ID")
    private String refId;

    /** 任务类型 10 订单拉取待同步任务 11 同步订单 */
    @Excel(name = "任务类型 10 订单拉取待同步任务 11 同步订单")
    private Integer type;

    /** 任务状态 */
    @Excel(name = "任务状态", readConverterExp = "0=初始,1=执行中,2=成功,3=失败")
    private Integer status;

    /** 任务内容 */
    @Excel(name = "任务内容")
    private String content;

    /** 执行次数 */
    @Excel(name = "执行次数")
    private Integer execCount;

    /** 是否有效（0:无效；1:有效） */
    @Excel(name = "是否有效", readConverterExp = "0=:无效；1:有效")
    private Integer valid;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setRefId(String refId) 
    {
        this.refId = refId;
    }

    public String getRefId() 
    {
        return refId;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setExecCount(Integer execCount) 
    {
        this.execCount = execCount;
    }

    public Integer getExecCount() 
    {
        return execCount;
    }
    public void setValid(Integer valid) 
    {
        this.valid = valid;
    }

    public Integer getValid() 
    {
        return valid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("refId", getRefId())
            .append("type", getType())
            .append("status", getStatus())
            .append("content", getContent())
            .append("execCount", getExecCount())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("valid", getValid())
            .toString();
    }
}
